<?php
function get_document_head()
{

	$title = 'Diplomacy';
	$css_file = 'view/templates/css/style.css';
	$java_script = 'js/scripts.js';
	$jquery = 'js/jquery-1.4.3.js';

    $output='';

    $output = <<<OUT
	<!DOCTYPE html>
	<html>
		<head>
			<title>Diplomacy</title>
			<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
			<link rel="stylesheet" href="view/templates/style/reset.css" type="text/css" charset="utf-8" />
			<link rel="stylesheet" href="view/templates/style/general.css" type="text/css" charset="utf-8" />
			<link rel="stylesheet" href="view/templates/style/style.css" type="text/css" charset="utf-8" />
			<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script>
			<script src="scripts/anim.js" type="text/javascript" charset="utf-8"></script>
			<script src="js/scripts.js" type="text/javascript" charset="utf-8"></script>
		</head>
		<body>
			<div id="container">
OUT;

	return $output;

}

function get_header()
{
    $output='';
    $output = <<<OUT

			<div id="header">
				<div class="wrapper">
					<h1 id="diplomacy" class="whole">diplomacy</h1>
				</div>
			</div>
OUT;

	return $output;
}
function get_wrapper()
{
    return '<div id="main" class="wrapper">';

}

function get_leftsidebar()
{
return '<div id="leftSidebar" class="threeSixteenths">';
}

function get_login()
{
    $output = '';

    $output = <<<OUT
					<div id="loginForm">
						<form action="controller/form_handler.php" method="post">
							<label>Login.</label>
							<input type="text" name="usernameForm"  id="usernameForm" class="loginFormStyle"/>
							<input type="password" name="passwordForm"  id="passwordForm" class="loginFormStyle"/>
							<input type="hidden" id="_get_function" name="_get_function" value="login">
							<input type="submit" name="submitLogin" value="Login" id="submitLogin" />
						</form>
						<p>Or <a href="registration.html" id="create_register_popup">register</a> to play</p>
					</div>
OUT;

	return $output;
}

function get_logged()
{
    $output = '';

    $output = <<<OUT
					<div id="logged">
						<ul><span class="listTitle">See who's playing</span>
							<li>ThongMan233</li>
							<li>Megatron80</li>
							<li>Imgonnakillyou</li>
							<li>Monster-granma</li>
							<li>spike2000</li>
							<li>macdonalds</li>
						</ul>
					</div>
OUT;

	return $output;
}

function get_plays()
{
    $output = '';

    $output = <<<OUT
					<div id="plays">
						<ul><span class="listTitle">Games going on</span>
							<li>Springsteen</li>
							<li>World Domination</li>
							<li>Who rules</li>

						</ul>
					</div>
OUT;

	return $output;
}

function get_leftsidebar_end()
{
return '</div><!-- Closing leftSidebar -->';
}

function get_startpage()
{
	$output = '';

    $output = <<<OUT
					<div id="content">
						<audio loop="loop" autoplay="autoplay">
						  <source src="diplomacy_themes/term.ogg" type="audio/ogg" />
						  <source src="diplomacy_themes/term.mp3" type="audio/mpeg" />
						</audio>
						<h2  class="right thirteenSixteenths" id="mainIndexTitle">Can you dominate the world?</h2>
						<img class="thirteenSixteenths" src="view/templates/style/images/ruletheworld.png" width="760" alt="Ruletheworld">
						<h2  class="right thirteenSixteenths" id="mainIndexTitle">Play Diplomacy</h2>
					</div>
OUT;

return $output;
}

function get_rightsidebar(){
return '<div id="rightSidebar" class="right oneQuarter">';
}

function get_rightsidebar_end(){
return '</div><!-- Closing rightSidebar -->';
}

function get_wrapper_end()
{
	return '</div><!-- Closing Wrapper -->';
}

function get_footer()
{
	$output = '';

    $output = <<<OUT
			<div class="clearfooter"></div>
		</div><!-- Closing Container -->
		<div id="footer">
		</div>
OUT;

return $output;

}

function get_document_end()
{

	$output='';

	$output = <<<OUT

		</body>
	</html>

OUT;

	return $output;

}